﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:element name="Skins">
    <xs:complexType>
      <xs:sequence>
        <xs:element minOccurs="1" maxOccurs="unbounded" name="Skin">
          <xs:complexType>
            <xs:sequence minOccurs="0">
              <xs:element minOccurs="0" maxOccurs="unbounded" name="Helper">
                <xs:complexType>
                  <xs:attribute name="Ratio" type="xs:integer" use="required" />
                  <xs:attribute name="OffsetX" type="xs:decimal" use="required" />
                  <xs:attribute name="OffsetY" type="xs:decimal" use="required" />
                  <xs:attribute name="OffsetWidth" type="xs:decimal" use="required" />
                  <xs:attribute name="OffsetHeight" type="xs:decimal" use="required" />
                </xs:complexType>
              </xs:element>
            </xs:sequence>
            <xs:attribute name="Name" type="xs:string" use="required" />
            <xs:attribute name="Purpose" type="xs:string" use="required" />
            <xs:attribute name="Use" use="required" >
              <xs:simpleType>
                <xs:restriction base="xs:string">
                  <xs:enumeration value="All"/>
                  <xs:enumeration value="Screenshot"/>
                  <xs:enumeration value="Overlay"/>
                </xs:restriction>
              </xs:simpleType>
            </xs:attribute>
            <xs:attribute name="ImageFile" type="xs:string" use="required" />
            <xs:attribute name="RelativeX" type="xs:integer" use="required" />
            <xs:attribute name="RelativeY" type="xs:integer" use="required" />
            <xs:attribute name="Author" type="xs:string" use="optional" />
          </xs:complexType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
</xs:schema>